import { useThemeStore } from '@/store'
import type { Theme } from '@/store/modules/theme'
import { ref } from 'vue'

/**
 * 分组安钮列表
 */
function useThemeCustomList() {
  const themeStore = useThemeStore()
  const category = ref<Theme[]>(themeStore.getCustomTheme())
  themeStore.$subscribe(() => (category.value = themeStore.getCustomTheme()))
  return { category }
}

export { useThemeCustomList }
